// const path = require('path')

module.exports = {
  assetsDir: 'static',
  parallel: false,
  publicPath: './',
  devServer: {
    port: 80,
    open: true,
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      '/api': {
        target: "https://www.51mydoor.com/mendaoVoluntary",
        changeOrigin: true,
        pathRewrite: {
          ['^/api']: ''
        }
      }
    },
    disableHostCheck: true
  },
  css: {
    loaderOptions: {
      stylus: {
        import: [
          "~@/assets/styles/common.styl"
        ],
      }
    }
  },
	// chainWebpack: config => {
  //   config.plugin('define').tap(args => [{
  //     ...args,
  //   }])
	// }
};
